import requests
import chardet

r = requests.get("https://eean.cn/")
print(r.encoding)

print(chardet.detect(r.content))
print(r.content.decode(chardet.detect(r.content).get("encoding")))